package Task;

/**
 * Created with IntelliJ IDEA.
 * Description:Java多线程实验二代码
 */
public class Test2 {

    public static void main(String[] args) {
        Thread thread = new Thread(new Runnable() {
            @Override
            public void run() {
                for (int i = 0; i < 5; i++) {
                    System.out.println("new");
                }
            }
        });
        thread.start();
        for (int i = 0; i < 5; i++) {
            System.out.println("main");
        }
    }
}
